package com.zhentao.model.pojo.user.record;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 *
 * @TableName charge_user_income
 */
@TableName(value ="charge_user_income")
@Data
public class ChargeUserIncome implements Serializable {
    /**
     * 注解id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 收入类型
     */
    private Integer type;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 收益
     */
    private BigDecimal income;
    /**
     * 在途收益
     */
    private BigDecimal transit;

    /**
     * 获取时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
